package o;

import com.huawei.appgallery.festivalanimation.particle.modifiers.SizeModifier;

class gat {
    static final /* synthetic */ boolean ˊ = (!gat.class.desiredAssertionStatus());
    public final fzp ˋ = new fzp();
    public final fzp ˎ = new fzp();
    public float ˏ;

    gat() {
    }

    public void ˏ(gam o_gam, fzn o_fzn, fzn o_fzn2, int i) {
        if (ˊ || o_gam.ͺ > 0) {
            fzi o_fzi = o_fzn.ˏ;
            fzi o_fzi2 = o_fzn2.ˏ;
            fzp o_fzp = o_gam.ॱ[i];
            fzp o_fzp2;
            float f;
            float f2;
            float f3;
            float f4;
            fzp o_fzp3;
            float f5;
            switch (o_gam.ॱˊ) {
                case CIRCLES:
                    o_fzp = o_gam.ˋ;
                    o_fzp2 = o_gam.ॱ[0];
                    f = ((o_fzi.ˊ * o_fzp.ˊ) - (o_fzi.ˏ * o_fzp.ॱ)) + o_fzn.ˊ.ˊ;
                    f2 = ((o_fzi.ˊ * o_fzp.ॱ) + (o_fzi.ˏ * o_fzp.ˊ)) + o_fzn.ˊ.ॱ;
                    f3 = ((o_fzi2.ˊ * o_fzp2.ˊ) - (o_fzi2.ˏ * o_fzp2.ॱ)) + o_fzn2.ˊ.ˊ;
                    f4 = ((o_fzi2.ˊ * o_fzp2.ॱ) + (o_fzi2.ˏ * o_fzp2.ˊ)) + o_fzn2.ˊ.ॱ;
                    this.ˋ.ˊ = f3 - f;
                    this.ˋ.ॱ = f4 - f2;
                    this.ˋ.ॱ();
                    this.ˎ.ˊ = (f + f3) * 0.5f;
                    this.ˎ.ॱ = (f2 + f4) * 0.5f;
                    f2 = f4 - f2;
                    this.ˏ = (((f2 * this.ˋ.ॱ) + (this.ˋ.ˊ * (f3 - f))) - o_gam.ˋॱ) - o_gam.ˏॱ;
                    return;
                case FACE_A:
                    o_fzp2 = o_gam.ˏ;
                    o_fzp3 = o_gam.ˋ;
                    this.ˋ.ˊ = (o_fzi.ˊ * o_fzp2.ˊ) - (o_fzi.ˏ * o_fzp2.ॱ);
                    this.ˋ.ॱ = (o_fzp2.ॱ * o_fzi.ˊ) + (o_fzi.ˏ * o_fzp2.ˊ);
                    f5 = ((o_fzi.ˊ * o_fzp3.ˊ) - (o_fzi.ˏ * o_fzp3.ॱ)) + o_fzn.ˊ.ˊ;
                    f2 = ((o_fzi.ˊ * o_fzp3.ॱ) + (o_fzi.ˏ * o_fzp3.ˊ)) + o_fzn.ˊ.ॱ;
                    f = ((o_fzi2.ˊ * o_fzp.ˊ) - (o_fzi2.ˏ * o_fzp.ॱ)) + o_fzn2.ˊ.ˊ;
                    f4 = ((o_fzi2.ˊ * o_fzp.ॱ) + (o_fzi2.ˏ * o_fzp.ˊ)) + o_fzn2.ˊ.ॱ;
                    f3 = (f - f5) * this.ˋ.ˊ;
                    this.ˏ = ((((f4 - f2) * this.ˋ.ॱ) + f3) - o_gam.ˋॱ) - o_gam.ˏॱ;
                    this.ˎ.ˊ = f;
                    this.ˎ.ॱ = f4;
                    return;
                case FACE_B:
                    o_fzp2 = o_gam.ˏ;
                    o_fzp3 = o_gam.ˋ;
                    this.ˋ.ˊ = (o_fzi2.ˊ * o_fzp2.ˊ) - (o_fzi2.ˏ * o_fzp2.ॱ);
                    this.ˋ.ॱ = (o_fzp2.ॱ * o_fzi2.ˊ) + (o_fzi2.ˏ * o_fzp2.ˊ);
                    f5 = ((o_fzi2.ˊ * o_fzp3.ˊ) - (o_fzi2.ˏ * o_fzp3.ॱ)) + o_fzn2.ˊ.ˊ;
                    f4 = ((o_fzi2.ˊ * o_fzp3.ॱ) + (o_fzi2.ˏ * o_fzp3.ˊ)) + o_fzn2.ˊ.ॱ;
                    f = ((o_fzi.ˊ * o_fzp.ˊ) - (o_fzi.ˏ * o_fzp.ॱ)) + o_fzn.ˊ.ˊ;
                    f2 = ((o_fzi.ˊ * o_fzp.ॱ) + (o_fzi.ˏ * o_fzp.ˊ)) + o_fzn.ˊ.ॱ;
                    f3 = (f - f5) * this.ˋ.ˊ;
                    this.ˏ = ((((f2 - f4) * this.ˋ.ॱ) + f3) - o_gam.ˋॱ) - o_gam.ˏॱ;
                    this.ˎ.ˊ = f;
                    this.ˎ.ॱ = f2;
                    fzp o_fzp4 = this.ˋ;
                    o_fzp4.ˊ *= SizeModifier.STABLE_STATE_SCALE;
                    o_fzp4 = this.ˋ;
                    o_fzp4.ॱ *= SizeModifier.STABLE_STATE_SCALE;
                    return;
                default:
                    return;
            }
        }
        throw new AssertionError();
    }
}
